xen/ioreq: Make x86's hvm_ioreq_(page/vcpu/server) structs common
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Fri, 29 Jan 2021 01:48:35 +0000 (03:48 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 29 Jan 2021 16:18:15 +0000 (16:18 +0000)
commite66afc2cc08b47c3b9e182d3917544867c5b481e
tree71fbe49b8d1ef247450db6614a2c9fb6e27e7943
parentc648ff96229f899124d4da2693ffe5bfe49a974f
xen/ioreq: Make x86's hvm_ioreq_(page/vcpu/server) structs common

The IOREQ is a common feature now and these structs will be used
on Arm as is. Move them to xen/ioreq.h and remove "hvm" prefixes.

Also there is no need to include public/hvm/dm_op.h by
asm-x86/hvm/domain.h anymore since #define NR_IO_RANGE_TYPES
(which uses XEN_DMOP_IO_RANGE_PCI) gets moved to another location.
Instead include it by 2 places (p2m-pt.c and p2m-ept.c) which
require that header, but don't directly include it so far.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
CC: Julien Grall <julien.grall@arm.com>
[On Arm only]
Tested-by: Wei Chen <Wei.Chen@arm.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/ioreq.c
xen/arch/x86/hvm/stdvga.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/common/ioreq.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/p2m.h
xen/include/xen/ioreq.h